package cn.ycc1.dubboconsumer.config;

import cn.ycc1.dubboapi.api.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.spring.ReferenceBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ycc
 * @date 2024/10/29
 */
@Configuration
public class DubboConfig {
    @Bean
    @DubboReference
    public ReferenceBean<DemoService> demoServiceReferenceBean() {
        return new ReferenceBean<>();
    }
}
